<?php

class DblClickComponent extends BlueprintComponent {
	
	function parse(&$element, $link, $addGetVars = false) {
		$doc = $element->document;
		if ($addGetVars) {
			$queryString = $_SERVER['QUERY_STRING'];
			if (strlen($queryString) > 1) {
				$link .= "?$queryString";
			}
		}
		$element->attributes['ondblclick'] = "document.location.href='$link';return false";
	}
}
?>